package com.kgc.excpt;

/**
 * Created on 2021/6/21.
 * Author: lzy
 * Description:
 */

public class SysException extends  RuntimeException {

    private static final long serialVersionUID = -6931365668550546970L;


    /**
     * 异常枚举
     * */
    private SysExceptionEnum sysExceptionEnum;

    public SysException() {
    }

    public SysException(String message) {
        super(message);
    }

    public SysException(String message, Throwable cause) {
        super(message, cause);
    }

    public SysException(Throwable cause) {
        super(cause);
    }

    public SysException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public SysException(SysExceptionEnum sysExceptionEnum){
        this.sysExceptionEnum = sysExceptionEnum;
    }

    public SysExceptionEnum getSysExceptionEnum() {
        return sysExceptionEnum;
    }
}
